﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Books.Data.Model
{
   public abstract class AuditObject
    {
        public DateTime? DateCreated { get; set; }
        public string CreatedById { get; set; }
        [ForeignKey("CreatedById")]

        public virtual User CreatedBy { get; set; }
        public DateTime? DateUpdated { get; set; }
        
        public string UpdatedById { get; set; }
        [ForeignKey("UpdatedById")]

        public virtual User UpdatedBy { get; set; }
        public bool? IsDeleted { get; set; }
    }
}
